<?php

class DBConnector{

	public static function get_connection(){
		$mysqli = new mysqli('localhost', 'compucall', 'compucall', 'compucall');
		if ($mysqli->connect_error) {
    		die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error);
		}
		
		return $mysqli;	
	}

	public static function close($connection){
		$connection->close();
	}

}
?>
